from langchain_community.document_loaders import NotionDirectoryLoader

if __name__ == '__main__':

    loader = NotionDirectoryLoader("./docs/Notion_DB")
    pages = loader.load()

    print("Type of pages: ", type(pages))
    print("Length of pages: ", len(pages))
    page = pages[0]
    print("Type of page: ", type(page))
    print("Page_content: ", page.page_content[:500])
    print("Meta Data: ", page.metadata)